//
//  PlayerViewController.m
//  namefight
//
//  Created by wang zhe on 11-4-6.
//  Copyright 2011年 nasawz.com. All rights reserved.
//

#import "PlayerViewController.h"


@implementation PlayerViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
		self.title = @"Player";
        
		self.tabBarItem = [[[UITabBarItem alloc] initWithTitle:@"player" image:[UIImage imageNamed:@"icon_player.png"] tag:0] autorelease];
    }
    return self;
}

- (void)dealloc
{
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)loadView
{
    [super loadView];
    
    UIImageView * bgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"paper_bg.png"]];
    [self.view addSubview:bgView];
    TT_RELEASE_SAFELY(bgView);
    
    UIImageView * paper_buttom = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"paper_buttom.png"]];
    paper_buttom.frame =CGRectMake(0, 360, 318, 8);
    [self.view addSubview:paper_buttom];
    TT_RELEASE_SAFELY(paper_buttom);
}


/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
    [super viewDidLoad];
}
*/

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
